package oss.aliyun.springai;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * @Author: 陈杰
 * @Date: 2025/6/21 20:26
 * @Description:
 * @PackageName: oss.aliyun.springai
 * @Version: 1.0
 * @Since: 1.0
 */
@SpringBootTest
public class cachetest {
    @Autowired
    private RedisTemplate<String, Object> redisTemplate;
    @Test
    public void testCache() {
        // 缓存数据
        redisTemplate.opsForValue().set("key", "value");
    }
}
